//
// Created by wze-zero on 2024/7/18 018.
//
#include <iostream>

using namespace std;

class Person {
    friend void showAge(Person &p);

public:
    Person(int age) {
        this->age = age;
    }

private:
    int age;
};

void showAge(Person &p) {
    cout << p.age << endl;
}

int main() {
    Person p(10);
    showAge(p);
    return 0;
}